package com.gome.TestUtil.IO;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class IOProperties {

	public static void main(String[] args) {

		IOProperties ip = new IOProperties();

		ip.Test();

	}

	private void Test() {

		InputStream inputStream = this.getClass().getClassLoader()
				.getResourceAsStream("ipConfig.properties");
		Properties p = new Properties();
		try {
			p.load(inputStream);
		} catch (IOException e1) {
			e1.printStackTrace();
		}
		System.out.println("ip:" + p.getProperty("ip") + ",port:"
				+ p.getProperty("port"));

	}

}
